<%if obj.errors.any?%>
  <div class="alert alert-warning show">
  <button type="button" class="close" data-dismiss="alert">&times;</button>
  <% obj.errors.full_messages.each do |msg| %>
    <strong><%= msg%></strong> | 
<%end %>
</div>
<script type="text/javascript">
$(function(){
    setTimeout(function(){
      $(".alert").alert('close')
      },3500)
    })
</script>
<% end %>
